AI Verified

Name

WooCommerce: Change the Order notes placeholder text.

About

WooCommerce checkout page. Change the placeholder text inside the Order notes field. https://easywebdesigntutorials.com/woocommerce-modifying-the-checkout-page/

Language

PHP

Rating

Voted: 0 by 0 user(s)

How to Setup Snippet

Add the code to the child theme functions.php file or a code snippet plugin.

Codevault

Easy Web Design Tutorials

Scroll down to see more snippets from this codevault.

Wordpress Compatability

The author has indicated that this snippet is compatable up to wordpress version: Not Specified

Our AI bot has checked this snippet is compatable up to wordpress version: 6.1

Code Snippet Plugin Sync

Free & Pro

Download this snippet by clicking the download button, then head over to the Code Snippet Plugin settings in your wordpress admin dashboard, select the import menu then upload this file to import into your wordpress site.

Pro Only (Coming Soon)

You will be able to click a button and sync this snippet to your wordpress site automatically and from your dashboard manage all code snippets across all your wordpress sites that have the Code Snippets Pro plugin installed.

History

Last modified:

13/11/2022

Important Note

This snippet has the following status:

AI Verified

This snippet has been tested by our AI bot, see any comments below.

AI Bot Comments:

Found 0 vulnerabilities

WooCommerce: Change the Order notes placeholder text.

 
                    
1// https://easywebdesigntutorials.com/woocommerce-modifying-the-checkout-page/
2 
3 /* Placeholder changed to "Notes about your order..."
4 
5add_filter( 'woocommerce_checkout_fields' , 'change_order_notes_placeholder' );
6function change_order_notes_placeholder( $fields ) {
7 $fields['order']['order_comments']['placeholder'] = _x('Notes about your order...', 'placeholder', 'woocommerce');
8 
9 return $fields;
10}

0

Related Snippets

Please see some snippets below related to this snippet..

WooCommerce

AI Verified

1

WooCommerce Show Custom Text On Empty Cart Page

Added: 1 year ago

Last Updated: 2 months ago

If the user navigates to the cart page when there is nothing in their cart, they will see a cart notification, “Your cart is currently empty.” To change that particular cart notification, check out ou...

WooCommerce

AI Verified

1

WooCommerce Show Categories On Product Loop

Added: 1 year ago

Last Updated: 2 months ago

Being able to show which categories a product belongs to on the archive page make it clear to users that a product may belong to more than one category and also that there are more categories to navig...

WooCommerce

AI Verified

0

Add plus and minus buttons to quantity input woocommerce

Added: 2 months ago

Last Updated: 2 months ago

Adds plus and minus buttons to quantity input woocommerce

Other Snippets in this Codevault

These are some popular snippets from this users codevault..

WordPress Admin

AI Verified

1

Stop success email of plugin auto update.

Added: 1 year ago

Last Updated: 1 year ago

This code snippets will stop all auto update success e-mails from being sent out. It will only send out emails when a plugin update fails.

Tracking - Analytics

AI Verified

1

Google tag added to head

Added: 1 year ago

Last Updated: 1 year ago

Google tag code added to the head of the web site

General

AI Verified

1

Remove CTP name from URL slug

Added: 1 year ago

Last Updated: 1 year ago

Code removes the Custom Post Type (CPT) name from the URL slug.